<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RSVP.aspx.cs" Inherits="RSVP" Title="Reception RSVP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="content1" Runat="Server">
<table cellpadding="0" cellspacing="0" border="0">
	<tr>
		<td class="header21p">RSVP</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>Please RSVP for the reception by - 11/12/2006<br />&nbsp;</td>
	</tr>
	<tr>
		<td align="left">
			<asp:panel id="pnlInput" runat="server" height="100%" width="100%">
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr>
					<td align="right" style="width: 150px">
						<asp:label id="Label2" runat="server" text="Your Name:" cssclass="header15p"></asp:label>&nbsp;
					</td>
					<td>
						<asp:textbox id="txtName" runat="server" maxlength="70" columns="20" tooltip="Enter your name here" enableviewstate="False"></asp:textbox>
						<asp:requiredfieldvalidator id="valYourName" runat="server" controltovalidate="txtName" errormessage="There must be a name to continue." setfocusonerror="True"></asp:requiredfieldvalidator></td>
				</tr>
				<tr>
					<td colspan="2">&nbsp;</td>
				</tr>
				<tr>
					<td align="right" valign="top">
						<asp:label id="Label1" runat="server" cssclass="header15p" text="Guest Count:"></asp:label>&nbsp;
					</td>
					<td>
						<asp:textbox id="txtGuestCount" runat="server" columns="2" tooltip="Enter the number of guests attending in your party." enableviewstate="False" maxlength="2"></asp:textbox>
						<asp:requiredfieldvalidator id="valGuestCountExists" runat="server" controltovalidate="txtGuestCount" errormessage="There must be a Guest Count to continue." display="Dynamic"></asp:requiredfieldvalidator>
						<asp:rangevalidator id="valGuestCountRange" runat="server" errormessage="The guest count must be greater than 0 and less than 10" maximumvalue="9" minimumvalue="1" setfocusonerror="True" controltovalidate="txtGuestCount" display="Dynamic" type="Integer"></asp:rangevalidator></td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<br />
						<asp:button id="btnSave" runat="server" text="Save" cssclass="stdButton" onclick="btnSave_Click" />&nbsp;&nbsp;
						<asp:button id="btnCancel" runat="server" text="Cancel" usesubmitbehavior="false" cssclass="stdButton" onclick="btnCancel_Click" causesvalidation="False" />
					</td>
				</tr>
				<tr>
					<td colspan="2">&nbsp;</td>
				</tr>
			</table>
			</asp:panel>
			<asp:panel id="pnlConfirmation" runat="server" height="100%" width="100%" visible="false">
				Thank you 
				<asp:label id="lblName" runat="server" text="Name" cssclass="header13p"></asp:label>.
				We have you confirmed for 
				<asp:label id="lblGuestCount" runat="server" text="GuestCount" cssclass="header13p"></asp:label>
				guests.<p />
				Your confirmation number is 
				<asp:label id="lblReservationNo" runat="server" text="ReservationNo" cssclass="header13p"></asp:label>.  
				Please note this number should you need to cancel you can do so at a later time.<p />
				John and Cheryl appreciate your RSVP and look forward to seeing you at their 
				<a href="./Reception.aspx" class="link" title="Click for more information about the reception.">reception.</a> 
				<br />&nbsp;<br />
				<div style="text-align:center"><a href="./" class="links">Click to Continue</a></div>
				<br />&nbsp;
			</asp:panel>
		</td>
	</tr>
</table>
</asp:Content>

